﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace AndreySmirnov.BLToolkitUtils.VSPackage.Model
{
	[XmlRoot("connectionInfo", Namespace = BLTConfig.NAMESPACE)]
	[Serializable]
	public class BLTConnectionInfo
	{
		[XmlAttribute("server")]
		public string Server { get; set; }

		[XmlAttribute("dbName")]
		public string DatabaseName { get; set; }

        [XmlAttribute("injectConnStringIntoDefaultConstructor")]
        public bool InjectConnStringIntoDefaultCtor { get; set; }

		[XmlAttribute("credentialsType")]
		public BLTConnectionCredentialsType CredentialsType { get; set; }

		[XmlElement("credentialsData")]
		public string CredentialsData { get; set; }
	}
}
